* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
  width: 400px;
  /* min-height: 300px; */
}

.container {
  padding: 15px;
}

h1 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

h2 {
  font-size: 16px;
  color: #333;
  margin: 15px 0 10px;
}

.stats-section {
  background-color: #f7f7f7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}

#data-count, #last-query {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #e0e0e0;
}

.btn.primary {
  background-color: #FF2442;
  color: white;
}

.btn.primary:hover {
  background-color: #E61E38;
}

.btn.danger {
  background-color: #fff;
  color: #FF2442;
  border: 1px solid #FF2442;
}

.btn.danger:hover {
  background-color: #FFF0F0;
}

.hidden {
  display: none;
}

.search-container {
  margin-bottom: 10px;
}

#search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

#data-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 6px;
}

.data-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.data-item:hover {
  background-color: #f9f9f9;
}

.data-item:last-child {
  border-bottom: none;
}

.data-item .query {
  font-weight: bold;
  margin-bottom: 4px;
}

.data-item .time {
  font-size: 12px;
  color: #999;
}

.footer {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #999;
  text-align: center;
} 